//  This file is part of Swordbible - http://www.swordwarrior.net
//  Copyright (C) 2003-2009 Manu Mital mital.manu@gmail.com

//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2, or (at your option)
//  any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software Foundation,
//  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


#pragma once


// CBibleSheet
# include "BiblePage.h"
#include "VerseLists.h"
#include "DailyBiblePage.h"
#include "ParallelBible.h"
# include "BottomPage.h"
#include "BottomLeft.h"
#include "DevotionalPage.h"
#include "DailyBiblePage.h"
//#include "ReadingPlanPage.h"
#include "NotesPage.h"
#include "ScriptureRef.h"
#include "BibleCompare.h"
#include "GenBooks.h"


class CBibleSheet : public CPropertySheet
{
	DECLARE_DYNAMIC(CBibleSheet)

public: 
	void ScaleSheet (int Height, int Width);
	CBibleSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
	CBibleSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
	static BOOL GetAppDirectory( CString& strAppDir );
  void SetGreekActiveModule();
  void SetHebrewActiveModule();
	void SetXrefActiveModule();
  void SetDictActiveModule();
	void SetMorphActiveModule();
	virtual ~CBibleSheet();

	static sword::SWMgr* pMgr;
	static sword::SWMgr* pHTMLMgr;
	CBiblePage* BiblePage;
	CBottomPage* BottomPage;		// Page in the bottom sheet
	CBottomLeft* BottomLeftPage;
	CDevotionalPage* DevotionalPage;
	CDailyBiblePage* DBPage;
	CNotesPage*  notes_page;
	CParallelBible* parallelPage;
	CBibleCompare * comparePage;
	CGenBooks     * genbookPage;
	CScriptureRef * scripRefPage;
	UINT title;
	static HCURSOR m_hHandCursor;
	
protected:
	RECT m_PageRect;
	static CScriptureRef* pDlg;
	DECLARE_MESSAGE_MAP()

	
protected:
	virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
	afx_msg LRESULT OnResizePage(WPARAM wParam, LPARAM lParam);
	
	
public:
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnDestroy();
	static void DisplayReference(CString title, CString body);
  static void OnToggleTags();
  static void DisableStrongMorph();
  static void RestoreStrongMorph();

private:
  static CString AppDirPrivate;
  static BOOL    AppDirPrivateExists;

};


